package lxzh.controller;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import lxzh.service.UserService;
import lxzh.vo.UserVO;

@RestController
@RequestMapping("/user")
public class TestController {
	
	@Resource
	private UserService userService;
	
	@RequestMapping("/getUserName")
	public UserVO getUserVO(String username){
		UserVO vo = userService.findByName(username);
		return vo;
	}
}